package com.ios.dto;

import com.ios.entity.FM;
import com.ios.enums.FMStateEnum;

import java.util.List;

/**
*@Author:WenTao
*@Description:FM中间状态返回类
*@Date:11:10 2018/7/24
*/
public class FMExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*FM*/
    private FM fm;
    /*FM  List*/
    private List<FM> fmList;

    /*失败时的构造*/
    public FMExecution(FMStateEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*成功时的构造1*/
    public FMExecution(FMStateEnum stateEnum,FM fm){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.fm = fm;
    }

    /*成功时的构造2*/
    public FMExecution(FMStateEnum stateEnum,List<FM> fmList){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.fmList = fmList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public FM getFm() {
        return fm;
    }

    public void setFm(FM fm) {
        this.fm = fm;
    }

    public List<FM> getFmList() {
        return fmList;
    }

    public void setFmList(List<FM> fmList) {
        this.fmList = fmList;
    }
}
